package tx.bj12320.vo.query;

import java.io.Serializable;

import javacommon.base.BaseQuery;

import org.activiti.engine.history.HistoricTaskInstance;
import org.activiti.engine.impl.persistence.entity.TaskEntity;
import org.activiti.engine.task.Task;

import tx.bj12320.model.enums.WorkOrderTypeEnum;

import cn.org.rapid_framework.util.DateConvertUtils;

public class TszbTaskComplete extends BaseQuery implements Serializable {
	protected static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
	private Long orgInfoId;
	public Long getOrgInfoId() {
		return orgInfoId;
	}
	public void setOrgInfoId(Long orgInfoId) {
		this.orgInfoId = orgInfoId;
	}

	private HistoricTaskInstance task;

	public HistoricTaskInstance getTask() {
		return task;
	}
	public void setTask(HistoricTaskInstance task) {
		this.task = task;
	}

	private java.lang.String orgName;

	public java.lang.String getOrgName() {
		return orgName;
	}
	public void setOrgName(java.lang.String orgName) {
		this.orgName = orgName;
	}

	private Long tszbProcessInfoId;

	public Long getTszbProcessInfoId() {
		return tszbProcessInfoId;
	}
	public void setTszbProcessInfoId(Long tszbProcessInfoId) {
		this.tszbProcessInfoId = tszbProcessInfoId;
	}
	private java.lang.String workOrderType;


	public java.lang.String getWorkOrderType() {
		return workOrderType;
	}
	public void setWorkOrderType(java.lang.String workOrderType) {
		this.workOrderType = workOrderType;
	}
	public String getCreateTimeString(){
		return DateConvertUtils.format(getTask().getStartTime(), DATE_TIME_FORMAT);
	}
	public String getEndTimeString(){
		return DateConvertUtils.format(getTask().getEndTime(), DATE_TIME_FORMAT);
	}
	public java.lang.String getWorkOrderTypeString() {
		return workOrderType==null?"":WorkOrderTypeEnum.getByCode(workOrderType).getDesc();
	}
}
